Generate SSH Key on Windows with Windows CMD/PowerShell

您所在的位置:网站首页 how to generate rsa key in windows Generate SSH Key on Windows with Windows CMD/PowerShell

Generate SSH Key on Windows with Windows CMD/PowerShell

2023-10-06 13:59| 来源: 网络整理| 查看: 265

Step 2: Create Your SSH Key Pair

Type the following command at the prompt then press enter.

ssh-keygen -b 4096

When prompted for the file in which to save the key, press enter. The default location will be created.

Keep default values and no need for a pass phrase.

Congratulations! You now have an SSH key. The whole process will look like this:

mceclip1.png

What does all this mean?

The key generating process has created two files.

id_rsa (this is your private key, do not lose or give this to anybody!)

id_rsa.pub (this is your public key, you copy this to servers or give to others to place onto servers for you to authenticate against using your private key)

These keys are store by default in:

C:\Users\WINUSER/.ssh/id_rsa.pub

The path might be different but you will always see it when generating the SSH Key, and, it may actually display as below depending on whether your system displays file extensions or not:

C:\Users\WINUSER/.ssh/id_rsa

back to top ▲



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3